package com.automannn.seataSamples.order.service;

import com.automannn.seataSamples.api.dto.OrderDTO;
import com.automannn.seataSamples.api.response.ObjectResponse;
import com.automannn.seataSamples.order.entity.OrderPO;
import com.baomidou.mybatisplus.service.IService;

/**
 * @author automannn
 * @Date 2022/3/24
 */
public interface IOrderService extends IService<OrderPO> {

    /**
     * 创建订单
     * @param orderDTO 订单信息
     * @return 持久化后的订单信息
     */
    ObjectResponse<OrderDTO> createOrder(OrderDTO orderDTO);
}
